﻿# CMakeList.txt: 顶层 CMake 项目文件，在此处执行全局配置
# 并包含子项目。
#
cmake_minimum_required (VERSION 3.8)

set(SOLUTION_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/out)
set(INCLUDE_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR})

set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR})

# 如果支持，请为 MSVC 编译器启用热重载。
if (POLICY CMP0141)
  cmake_policy(SET CMP0141 NEW)
  set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()

project ("pomian")

# 包含子项目。
add_subdirectory ("tokenizer")
add_subdirectory ("grammar")
add_subdirectory ("pomian")
